package components.items;

import java.awt.Color;

import com.uqbar.vainilla.appearances.Circle;
import components.CircularShape;
import components.Shape;
import components.scenes.MainGameScene;

public class Food extends Pickupeable {

	public Food(double x, double y) {
		super(5,5,x,y);
		this.setZ(1);
		this.setAppearance(new Circle(Color.YELLOW, 5));
	}
	public Food(){
		this(0,0);
	}
	
	@Override
	protected void pickedUp() {
		this.getScene().foodEaten(this);
	}

	@Override
	public Shape defineShape() {
		return new CircularShape(this);
	}
	@Override
	public void addToScene(MainGameScene mainGameScene, int x, int y) {
		mainGameScene.addFood(this, x, y);
	}

}
